package com.runze.base.domain;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 用户表专用，集成id，创建时间，用户名，密码，登录ip记录
 * @author wrzhxy@qq.com
 * @date 2018年3月13日
 */
@MappedSuperclass
public class UserEntity extends RecordEntity {
	
	// 上次登录ip
	@Column(name="last_ip")
	private String lastIp;
	// 本次登录ip
	private String ip;
	// 上次登录时间
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="last_time")
	private Date lastTime;
	// 本次登录时间
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="login_time")
	private Date loginTime;
	
	// 是否通过审核
	@Basic(optional=false)
	private Integer verify;
	
	public UserEntity() {
	}
	
	public String getLastIp() {
		return lastIp;
	}
	public void setLastIp(String lastIp) {
		this.lastIp = lastIp;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Date getLastTime() {
		return lastTime;
	}
	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	public int getVerify() {
		return verify;
	}
	public void setVerify(int verify) {
		this.verify = verify;
	}
	
}
